Company / developer | Apple Inc. |
---|---|
Programmed in | C, C++ |
OS family | Unix |
Working state | Current |
Source model | Open source |
Supported platforms | PowerPC, x86, ARM |
Kernel type | Hybrid |
Default user interface | Graphical |
License | Mostly Apple Public Source License, with proprietary drivers[1] |
Official website | Apple - Open Source |
Darwin is an open source POSIX-compliant computer operating system released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, and other free software projects.
Darwin forms the core set of components upon which Mac OS X, Apple TV, and iOS are based. It is compatible with the Single UNIX Specification version 3 (SUSv3) and POSIX UNIX applications and utilities.[2][3]
Contents |
Darwin's heritage began with NeXT's NeXTSTEP operating system (later known as OPENSTEP), first released in 1989. After Apple bought NeXT in 1997, it announced it would base its next operating system on OPENSTEP. This was developed into Rhapsody in 1997 and the Rhapsody-based Mac OS X Server 1.0 in 1999. In 2000, Rhapsody was forked into Darwin and released as open-source software under the Apple Public Source License (APSL), and components from Darwin are present in Mac OS X today.
Up to Darwin 8.0, Apple released a binary installer (as an ISO image) after each major Mac OS X release that allowed one to install Darwin on PowerPC and Intel x86 computers as a standalone operating system. Minor updates were released as packages that were installed separately. Darwin is now only available as source code,[4] except for the ARM variant, which has not been released in any form separately from iOS. However, the older versions of Darwin are still available in binary form.
Darwin is built around XNU, a hybrid kernel that combines the Mach 3 microkernel, various elements of BSD (including the process model, network stack, and virtual file system),[5] and an object-oriented device driver API called I/O Kit.[6]
Some of the benefits of this choice of kernel are the Mach-O binary format, which allows a single executable file (including the kernel itself) to support multiple CPU architectures, and the mature support for symmetric multiprocessing in Mach. The hybrid kernel design compromises between the flexibility of a microkernel and the performance of a monolithic kernel.
Darwin currently includes support for both 32-bit and 64-bit variants of the Intel x86 processor used in the Mac and Apple TV as well as the 32-bit ARM processor used in the iPhone, iPod Touch and iPad. An open-source port of the XNU kernel exists which supports Darwin on Intel and AMD x86 platforms not officially supported by Apple.[7]
It supports the POSIX API by way of its BSD lineage and a large number of programs written for various other UNIX-like systems can be compiled on Darwin with no changes to the source code.
Darwin does not include many of the defining elements of Mac OS X, such as the Carbon and Cocoa APIs or the Quartz Compositor and Aqua user interface, and thus cannot run Mac applications. It does, however, support a number of lesser known features of Mac OS X, such as mDNSResponder, which is the multicast DNS responder and a core component of the Bonjour networking technology, and launchd, an advanced service management framework.
In July 2003, Apple released Darwin under version 2.0 of the Apple Public Source License (APSL), which the Free Software Foundation (FSF) approved as a free software license. Previous releases had taken place under an earlier version of the APSL that did not meet the FSF's definition of free software, although it met the requirements of the Open Source Definition.
The Darwin developers decided to adopt a mascot in 2000, and chose Hexley the Platypus, over other contenders, such as an Aqua Darwin fish, Clarus the Dogcow, and an orca. Hexley is a cartoon platypus who usually wears a cap resembling a demon's horns. He carries a trident, similar to the BSD Daemon, to symbolize the daemon's forking of processes. Hexley was designed by Jon Hooper. Apple does not sanction Hexley as a logo for Darwin.[8]
Hexley's name was a mistake: it was originally supposed to be named after Thomas Henry Huxley, a 19th century English biologist who was a well-known champion of Charles Darwin's theory of evolution (nicknamed "Darwin's bulldog"). However, ignorance led not only to a mistake in Huxley's name, but who he was thought to be. The developers apparently thought he was simply Darwin's assistant, when in fact he was a prominent biologist in his own right. By the time the mistake had been discovered, it was deemed too late to change, and the incorrect name "Hexley" was kept.[9]
This is a table of major Darwin releases with their dates of release and their corresponding Mac OS X releases.[10] Note that the corresponding Mac OS X release may have been released on a different date; refer to the Mac OS X pages for those dates.
Version | Date | Corresponding releases | Notes |
---|---|---|---|
0.1 | March 16, 1999 | Mac OS X Server 1.0 | |
1.0.2 | November 10, 1999 | Mac OS X DP2 | |
1.1 | April 5, 2000 | Mac OS X DP4 | |
1.2.1 | November 15, 2000 | Mac OS X Public Beta | |
1.3.1 | April 13, 2001 | Mac OS X v10.0 | |
1.4.1 | October 2, 2001 | Mac OS X v10.1 | Performance improvements to "boot time, real-time threads, thread management, cache flushing, and preemption handling," support for SMB network file system, Wget replaced with cURL.[11] |
6.0.1 | September 23, 2002 | Mac OS X v10.2 (Darwin 6.0.2) | GCC upgraded from 2 to 3.1, IPv6 and IPSec support, mDNSResponder service discovery daemon (Rendezvous), addition of CUPS, Ruby, and Python, journaling support in HFS+ (Darwin 6.2), application profiles ("pre-heat files") for faster program launching.[12] |
7.0 | October 24, 2003 | Mac OS X v10.3 | BSD layer synchronized with FreeBSD 5, automatic file defragmentation, hot-file clustering, and optional case sensitivity in HFS+, bash instead of tcsh as default shell, read-only NTFS support (Darwin 7.9).[13] |
8.0 | April 29, 2005 | Mac OS X v10.4 Mac OS X for Apple TV (Darwin 8.8.2) |
Stable kernel programming interface, finer-grained kernel locking, 64-bit BSD layer, launchd service management framework, extended file attributes, access control lists, commands such as cp and mv updated to preserve extended attributes and resource forks.[14] |
9.0 | October 26, 2007 | iOS 1.0 (Darwin 9.0.0d1) Mac OS X v10.5 |
Full POSIX compliance, improved hierarchical process scheduling model, dynamically allocated swap files, dynamic resource limits (for files and processes), process sandboxing, address space layout randomization, DTrace tracing framework, file system events daemon, directory hard links, Apache 1.3 and PHP 4 updated to Apache 2.2 and PHP 5, read-only ZFS support.[15] |
10.0 | August 28, 2009 | Mac OS X v10.6 | End of official support for PowerPC architecture (although several fat binaries, such as Kernel, still contain PPC images); 64-bit kernel and drivers, libdispatch task parallelization framework, OpenCL heterogeneous computing framework, support for blocks in C, transparent file compression in HFS+.[16] |
10.1.0 | September 10, 2009 | Mac OS X v10.6.1 | |
10.2.0 | November 9, 2009 | Mac OS X v10.6.2 | |
10.3.0 | March 29, 2010 | iOS 4.0 (Darwin 10.3.1) Mac OS X v10.6.3 |
|
10.4.0 | June 15, 2010 | Mac OS X v10.6.4 | |
10.5.0 | November 11, 2010 | Mac OS X v10.6.5 | |
10.6.0 | January 6, 2011 | Mac OS X v10.6.6 | |
10.7.0 | March 21, 2011 | Mac OS X v10.6.7 | |
10.8.0 | June 23, 2011 | Mac OS X v10.6.8 | |
11.0.0 | July 20, 2011 | Mac OS X v10.7 | XNU no longer supports PPC binaries (fat binary only for i386, x86_64). XNU requires an x86_64 processor. Improved sandboxing of applications |
11.1.0 | August 16, 2011 | Mac OS X v10.7.1 | |
11.2.0 | October 12, 2011 | Mac OS X v10.7.2 |
The jump in version numbers from Darwin 1.4.1 to 5.1 with the release of Mac OS X v10.1.1 was designed to tie Darwin to the Mac OS X version and build numbering system. In the build numbering system of Mac OS X, every version has a unique beginning build number, which identifies what whole version of Mac OS X it is part of. Mac OS X v10.0 had build numbers starting with 4, 10.1 had build numbers starting with 5, and so forth (earlier build numbers represented developer releases). The point release number in the Darwin version is always the same as the second point number in the Mac OS X version. In the case of Mac OS X v10.1.1 (the version where the jump in version numbers was made), this was build 5M28 and the 10.1.1 release, from which a version number of 5.1 was derived.[18]
The command uname -r in Terminal will show the Darwin version number, and the command uname -v will show the XNU build version string, which includes the Darwin version number.
Due to the free software nature of Darwin, there are many projects that aim to modify or enhance the operating system.
OpenDarwin was a community-led operating system based on the Darwin system. It was founded in April 2002 by Apple Inc. and Internet Systems Consortium. Its goal was to increase collaboration between Apple developers and the free software community. Apple benefited from the project because improvements to OpenDarwin would be incorporated into Darwin releases; and the free/open source community supposedly benefited from being given complete control over its own operating system, which could then be used in free software distributions such as GNU-Darwin.[19]
On July 25, 2006, the OpenDarwin team announced that the project was shutting down, as they felt OpenDarwin had "become a mere hosting facility for Mac OS X related projects," and that the efforts to create a standalone Darwin operating system had failed. They also state: "Availability of sources, interaction with Apple representatives, difficulty building and tracking sources, and a lack of interest from the community have all contributed to this."[20] The last stable release was version 7.2.1, released on July 16, 2004.[21]
In 2007, the PureDarwin project was launched to continue where OpenDarwin left off, and is currently working to produce a release based on Darwin 9. There is a developer preview available, called "PureDarwin XMas", based on Darwin 9. This release has X11, DTrace, and ZFS.[22] PureDarwin nano is another release of PureDarwin that is supposed to be minimalistic.
|
|
|
|